<?php
class AdminOperationLogServer {
	public function add($controller,$function){
		$functiondata = HttpDaoManager::getFunctionDao()->getByCnByFu($controller, $function);
		$functiondata_marrk = Common::getStrValue($functiondata,'mark');
		$tmp  = Common::_t($functiondata_marrk);
		$data=array(
			'controller'=>$controller,
			'function' => $function,
			'time' => strtotime("now"),
			'admin_id' => $_SESSION['admin']['id'],
			'admin_group_id' => $_SESSION['admin']['group']['id'],
			'admin_name' =>$_SESSION['admin']['name'],
			'operation' =>$tmp
		);
		HttpDaoManager::getAdminOperationLogDao()->add($data);
	}
}

?>